package com.kingyun.gpsinspection.purificationservice.facade.model.iam.adm;

import com.kingyun.gpsinspection.purificationservice.facade.model.BootstrapSearchBean;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 请假实体
 */
public class VacationApply extends BootstrapSearchBean implements Serializable {
    // 请假申请ID
    private String vacationApplyId;
    // 申请操作员
    private String operatorId;
    // 申请人名
    private String name;
    // 所属组织
    private String orgName;
    // 请假类型 0：年假 1：病假 2：事假 3：婚假4：丧假 10：其他
    private Short type;
    // 请假事由
    private String reason;
    // 请假开始日期
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    // 请假截止日期
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    // 状态 1：提交 2同意 3驳回
    private Short status;
    // 审批人
    private String modifierId;
    // 审批时间
    private Date modifyTime;
    // 审批意见
    private String comments;
    // 删除标记
    private int delFlag;
    private List<TaskLinkIam> taskLinkIamList;
    // 流程实列id
    private String piPiid;
    private TaskLinkIam taskLinkIam;
    // 处理人
    private String approver;
    private String approveId;

    //当前节点名称
    private String nodeName;
    //多个审批人id
    private String approveIds;
    //流程id
    private String taskId;

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getNodeName() {
        return nodeName;
    }

    public void setNodeName(String nodeName) {
        this.nodeName = nodeName;
    }

    public String getApproveIds() {
        return approveIds;
    }

    public void setApproveIds(String approveIds) {
        this.approveIds = approveIds;
    }

    public String getVacationApplyId() {
        return vacationApplyId;
    }

    public void setVacationApplyId(String vacationApplyId) {
        this.vacationApplyId = vacationApplyId == null ? null : vacationApplyId.trim();
    }

    public String getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(String operatorId) {
        this.operatorId = operatorId == null ? null : operatorId.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Short getType() {
        return type;
    }

    public void setType(Short type) {
        this.type = type;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason == null ? null : reason.trim();
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Short getStatus() {
        return status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }

    public String getModifierId() {
        return modifierId;
    }

    public void setModifierId(String modifierId) {
        this.modifierId = modifierId == null ? null : modifierId.trim();
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments == null ? null : comments.trim();
    }

    public int getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(int delFlag) {
        this.delFlag = delFlag;
    }

    public List<TaskLinkIam> getTaskLinkIamList() {
        return taskLinkIamList;
    }

    public void setTaskLinkIamList(List<TaskLinkIam> taskLinkIamList) {
        this.taskLinkIamList = taskLinkIamList;
    }

    public String getPiPiid() {
        return piPiid;
    }

    public void setPiPiid(String piPiid) {
        this.piPiid = piPiid;
    }

    public TaskLinkIam getTaskLinkIam() {
        return taskLinkIam;
    }

    public void setTaskLinkIam(TaskLinkIam taskLinkIam) {
        this.taskLinkIam = taskLinkIam;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getApprover() {
        return approver;
    }

    public void setApprover(String approver) {
        this.approver = approver;
    }

    public String getApproveId() {
        return approveId;
    }

    public void setApproveId(String approveId) {
        this.approveId = approveId;
    }
}